package main

import (
	"guess_draw/pkg/websocket"
	"net/http"
)

func main() {
	server := websocket.NewDefaultWsServer()
	defer server.Close()
	go server.DealHandel()
	http.HandleFunc("/chat", server.Handel)
	if err := http.ListenAndServe(":8080", nil); err != nil {
		panic(err)
	}
}
